import request from '@/utils/request'

// 查询订单金额计算管理列表
export function listOrderAmountCalculation(query) {
  return request({
    url: '/backStage/orderAmountCalculation/list',
    method: 'get',
    params: query
  })
}

// 查询订单金额计算管理详细
export function getOrderAmountCalculation(id) {
  return request({
    url: '/backStage/orderAmountCalculation/' + id,
    method: 'get'
  })
}

// 新增订单金额计算管理
export function addOrderAmountCalculation(data) {
  return request({
    url: '/backStage/orderAmountCalculation',
    method: 'post',
    data: data
  })
}

// 修改订单金额计算管理
export function updateOrderAmountCalculation(data) {
  return request({
    url: '/backStage/orderAmountCalculation',
    method: 'put',
    data: data
  })
}

// 删除订单金额计算管理
export function delOrderAmountCalculation(id) {
  return request({
    url: '/backStage/orderAmountCalculation/' + id,
    method: 'delete'
  })
}
